<?php

namespace App\Controllers;

use Core\Model;
use \Core\View;
use App\Models;
/**
 * Home controller
 *
 * PHP version 7.0
 */
class Home extends \Core\Controller
{
    /**
     * Show the index page
     *
     * @return void
     */
    public function indexAction() {

    }
    public function  usersAction() {
        $user = Models\User::getAll();
        $this->JsonResp(200,$user,"OK");
    }
    public function insertAction() {

    }
    public function renderAction() {
        View::renderTemplate("/Home/index.html",[]);
    }
    public function docsAction(){
        $docs = new Models\Doc();
        $ret = $docs->getAll();
        $this->JsonResp(200,$ret,"OK");
    }
}

